﻿@model RonYee.Models.Customer

@{
    ViewBag.Title = "权限管理";
    Layout = "~/Views/Shared/_LayoutOfSecondPage.cshtml";
}


@using (Html.BeginForm())
{
    @Html.HiddenFor(model=>model.CustomerId)
    <div class="box_padding">
    <h3><i class="ui-icons"></i>用户权限管理</h3>
    <div class="box_top ui-icons"></div>
    <div class="box_bg"><div class="box_padding">
    <div class="border_line">

            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                    
                    <tr>
                        <td class="tdName">用户名</td><td class="tdData">
                            @Html.TextBoxFor(model => model.Login)
                        </td>
                        <td class="tdName">邮 箱</td><td class="tdData">
                            @Html.TextBoxFor(model => model.Email)
                        </td>
                    </tr>
                    <tr>
                        <td class="tdName">学 号</td><td class="tdData">
                            @Html.TextBoxFor(model => model.CustomerNo)
                        </td>
                        <td class="tdName">一卡通号</td><td class="tdData">
                            @Html.TextBoxFor(model => model.CarNo)
                        </td>
                    </tr>
                    <tr>
                        <td class="tdName">所属学院</td><td class="tdData">
                            @Html.TextBoxFor(model => model.Colloge)
                        </td>
                        <td class="tdName">手机</td>
                        <td class="tdData">
                            @Html.TextBoxFor(model => model.Phone)
                        </td>
                    </tr>
                    <tr>
                        <td class="tdName">用户状态</td><td class="tdData">
                            @{
                                List<SelectListItem> userStateList = new List<SelectListItem>();
                                foreach (object e in Enum.GetValues(typeof(RonYee.Models.Enum.UserState))) 
                                {
                                    userStateList.Add(new SelectListItem { Text = Enum.GetName(typeof(RonYee.Models.Enum.UserState), e), Value = ((int)e).ToString() });
                                }
                                @Html.DropDownList("UserState", userStateList);
                              }
                        </td>
                        <td class="tdName">用户类型</td><td class="tdData">
                            @{
                                List<SelectListItem> selectList = new List<SelectListItem>();
                                foreach (object e in Enum.GetValues(typeof(RonYee.Models.Enum.UserType)))
                                {
                                    selectList.Add(new SelectListItem { Text = Enum.GetName(typeof(RonYee.Models.Enum.UserType), e), Value = ((int)e).ToString() });
                                }
                                @Html.DropDownList("UserType", selectList);
                              }
                        </td>
                    </tr>
                </tbody>
            </table>
        
        </div>
    </div>
    </div>
    <div class="box_down ui-icons"></div>
    </div>
                
    <div class="line_top">
    <input class="Button1 ui-icons" title="Save" value="保存" type="submit" />
    </div>
    
}

